(Al-Fath'h) 48 : 24
وَهُوَ الَّذِي كَفَّ أَيْدِيَهُمْ عَنْكُمْ وَأَيْدِيَكُمْ عَنْهُمْ بِبَطْنِ مَكَّةَ مِنْ بَعْدِ أَنْ أَظْفَرَكُمْ عَلَيْهِمْ ۚ وَكَانَ اللَّهُ بِمَا تَعْمَلُونَ بَصِيرًا
And He is the one who restrained their hands against you, and your hands against them at the valley of Maccah after you got Victory upon them, and Allah is observing whatever you are doing.
After getting clear triumph for Messenger and believers upon Maccan pagans on the Day of Maccan Victory happened in the 8th year of Hijra (Messenger’s migration from Maccah to Madeena refers the Hijra), it was Allah who made it a bloodless victory. See explanation 16: 43-44; 17: 17; and 25: 58-59.